<?php



namespace App\Services\Member\Models;

use App\Services\Business\Models\Favorite;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Factories\HasFactory;

class FavoriteCategory extends Model
{
    use HasFactory;

    protected $table = 'favorite_category';

    protected $fillable = [
        'user_id', 'name','parent_id',
    ];

    public  function resources(){

        return $this->hasMany(Favorite::class,'category_id');

    }
}
